import time
from selenium import webdriver

# 准备options
from selenium.webdriver import FirefoxProfile

profile_directory =r'C:\Users\apple\AppData\Roaming\Mozilla\Firefox\Profiles\9jpf9mgr.default-release'
profile = FirefoxProfile(profile_directory)

# 打开浏览器(设置options), 请求目标网址
driver = webdriver.Firefox(profile)
driver.get('https://mail.163.com')

# 退出浏览器
time.sleep(2)
driver.quit()